//index.js
//获取应用实例
var app = getApp()
Page({
  data: {
    items: [],
    motto: 'Hello World',
    userInfo: {},
    Industry: {}
  },
  onLoad: function(options) {
    var that = this;
    wx.request({
      url: 'https://v.cjveg.com/api/GetUserFavVideoList?pagesize=20&page=1',
      method: "POST",
      header: {
        'content-type': 'application/x-www-form-urlencoded',
        'Authorization': 'Bearer ' + wx.getStorageSync('token')
      },
      success: function(res) {
        console.log(res.data);
        that.setData({
          items: res.data
        })
        console.log(that.data.items);
      },
    })
  }
})